//
//  ViewController.m
//  HiChat
//
//  Created by wqiong on 16/1/9.
//  Copyright © 2016年 wqiong. All rights reserved.
//

#import "ViewController.h"
#import "EaseMob.h"


@interface ViewController () <IChatManagerDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    [[EaseMob sharedInstance].chatManager addDelegate:self delegateQueue:nil];
//    EMChatText *txtChat = [[EMChatText alloc] initWithText:@"要发送的消息"];
//    EMTextMessageBody *body = [[EMTextMessageBody alloc] initWithChatObject:txtChat];
//    
//    // 生成message
//    EMMessage *message = [[EMMessage alloc] initWithReceiver:@"test2" bodies:@[body]];
//    message.messageType = eMessageTypeChat;
//    [[EaseMob sharedInstance].chatManager asyncSendMessage:message progress:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
//- (void)didReceiveMessage:(EMMessage *)message {
//    
//    EMChatText *txtChat = [[EMChatText alloc] initWithText:@"要发送的消息"];
//    EMTextMessageBody *body = [[EMTextMessageBody alloc] initWithChatObject:txtChat];
//    
//    // 生成message
//    EMMessage *qmessage = [[EMMessage alloc] initWithReceiver:@"test2" bodies:@[body]];
//    qmessage.messageType = eMessageTypeChat;
//    [[EaseMob sharedInstance].chatManager asyncSendMessage:qmessage progress:nil];
//}



@end
